<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Login.aspx.cs" Inherits="iPhOwa.Web.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>iPhOwa - Login</title>
	<meta name="viewport" content="width=device-width" />
</head>
<body>
	<form id="form1" runat="server">
		<table width="320px">
			<tr>
				<td align="center">
					<asp:Login ID="loginControl" runat="server" DestinationPageUrl="~/Default.aspx" MembershipProvider="iPhOwa.WebDav.OwaMembershipProvider"
						OnAuthenticate="LoginControl_Authenticate" BackColor="#F7F6F3" BorderColor="#E6E2D8"
						BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
						Font-Size="0.8em" ForeColor="#333333">
						<TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.9em" ForeColor="White" />
						<LayoutTemplate>
                            <table border="0" cellpadding="4" cellspacing="0" 
                                style="border-collapse:collapse;">
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="0">
                                            <tr>
                                                <td align="center" colspan="2" 
                                                    style="color:White;background-color:#5D7B9D;font-size:0.9em;font-weight:bold;">
                                                    Log In</td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="UserName" runat="server" Font-Size="0.8em"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                        ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                                        ToolTip="User Name is required." ValidationGroup="loginControl">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <asp:Panel ID="EmailPanel" runat="server">
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">Email:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="Email" runat="server" Font-Size="0.8em"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                                        ControlToValidate="Email" ErrorMessage="Email is required." 
                                                        ToolTip="Email Name is required." ValidationGroup="loginControl">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            </asp:Panel>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="Password" runat="server" Font-Size="0.8em" TextMode="Password"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                        ControlToValidate="Password" ErrorMessage="Password is required." 
                                                        ToolTip="Password is required." ValidationGroup="loginControl">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="2" style="color:Red;">
                                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" colspan="2">
                                                    <asp:Button ID="LoginButton" runat="server" BackColor="#FFFBFF" 
                                                        BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" CommandName="Login" 
                                                        Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775" Text="Log In" 
                                                        ValidationGroup="loginControl" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </LayoutTemplate>
						<InstructionTextStyle Font-Italic="True" ForeColor="Black" />
						<TextBoxStyle Font-Size="0.8em" />
						<LoginButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px"
							Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775" />
					</asp:Login>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
